# -*- coding: utf-8 -*-

from PyKDE4.solid import *

statusString = {
                  Solid.Networking.Unknown: "Unknown",\
                  Solid.Networking.Unconnected: "Unconnected",\
                  Solid.Networking.Disconnecting: "Disconnecting",\
                  Solid.Networking.Connecting: "Connecting",\
                  Solid.Networking.Connected: "Connected"\
                }

print "Network is connected:", (Solid.Networking.status() == Solid.Networking.Connected)
print "Current status:", statusString[Solid.Networking.status()]